package com.jx.flowershopmanager.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.Date;

public class SalesRecord{
    @SerializedName("code")
    public int code;
    @SerializedName("success")
    public boolean success;
    @SerializedName("msg")
    public String msg;
    @SerializedName("data")
    public ArrayList<Data> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ArrayList<Data> getData() {
        return data;
    }

    public void setData(ArrayList<Data> data) {
        this.data = data;
    }

    public static class Data{
        @SerializedName("sId")
        public int sId;
        @SerializedName("sDate")
        public Date sDate;
        @SerializedName("fId")
        public int fId;
        @SerializedName("count")
        public int count;
        @SerializedName("total")
        public double total;
        @SerializedName("client")
        public String client;
        @SerializedName("remark")
        public String remark;
        @SerializedName("emp")
        public String emp;
        @SerializedName("createAt")
        public Date createAt;
        @SerializedName("updatedAt")
        public Date updatedAt;
        @SerializedName("flowers")
        public Flower flowers;

        public int getsId() {
            return sId;
        }

        public void setsId(int sId) {
            this.sId = sId;
        }

        public Date getsDate() {
            return sDate;
        }

        public void setsDate(Date sDate) {
            this.sDate = sDate;
        }

        public int getfId() {
            return fId;
        }

        public void setfId(int fId) {
            this.fId = fId;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public double getTotal() {
            return total;
        }

        public void setTotal(double total) {
            this.total = total;
        }

        public String getClient() {
            return client;
        }

        public void setClient(String client) {
            this.client = client;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getEmp() {
            return emp;
        }

        public void setEmp(String emp) {
            this.emp = emp;
        }

        public Date getCreateAt() {
            return createAt;
        }

        public void setCreateAt(Date createAt) {
            this.createAt = createAt;
        }

        public Date getUpdatedAt() {
            return updatedAt;
        }

        public void setUpdatedAt(Date updatedAt) {
            this.updatedAt = updatedAt;
        }

        public Flower getFlower() {
            return flowers;
        }

        public void setFlower(Flower flowers) {
            this.flowers = flowers;
        }
    }

    public static class Flower{
        @SerializedName("fId")
        public int fId;
        @SerializedName("fName")
        public String fName;
        @SerializedName("cId")
        public int cId;
        @SerializedName("origin")
        public String origin;
        @SerializedName("describe")
        public String describe;
        @SerializedName("url")
        public String url;
        @SerializedName("createdAt")
        public Date createdAt;
        @SerializedName("price")
        public double price;
        @SerializedName("category")
        public Category category;

        public int getfId() {
            return fId;
        }

        public void setfId(int fId) {
            this.fId = fId;
        }

        public String getfName() {
            return fName;
        }

        public void setfName(String fName) {
            this.fName = fName;
        }

        public int getcId() {
            return cId;
        }

        public void setcId(int cId) {
            this.cId = cId;
        }

        public String getOrigin() {
            return origin;
        }

        public void setOrigin(String origin) {
            this.origin = origin;
        }

        public String getDescribe() {
            return describe;
        }

        public void setDescribe(String describe) {
            this.describe = describe;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public Date getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(Date createdAt) {
            this.createdAt = createdAt;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public Category getCategory() {
            return category;
        }

        public void setCategory(Category category) {
            this.category = category;
        }
    }
}